package com.cn.design.factory.method;

/**
 * @author xuhui
 * @Description:
 * @date 2022-06-29 18:58
 **/
public class Client {

    public static void main(String[] args) {
        AbstractFactory miFactory = new XiaoMiFactory();
        AbstractFactory appleFactory = new AppleFactory();
        // make xiaomi phone!
        miFactory.makePhone();
        // make iphone!
        appleFactory.makePhone();
    }
}
